using System;
using JoyfulHomeJourney.BackEnd.Infrastructure.EFCore;
using JoyfulHomeJourney.BackEnd.Infrastructure.Dtos.Requests.Objects;
namespace JoyfulHomeJourney.BackEnd.Server.Instances.Extends.Requests
{
	public static class EntitySysCarServicesCreateExtend
{
		public static SysCarServices ToCreateEntity(this RequestSysCarServicesDto dto)
		{
			return new SysCarServices
			{
				CsAppointmentRequired = dto.appointmentRequired,
				CsCarShopId = dto.carShopId,
				CsDuration = dto.duration,
				CsServiceArea = dto.serviceArea,
				CsServiceType = dto.serviceType,
			};
		}
	}
}
